﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="main.ascx.cs" Inherits="HY.WEB.Controls.main" %>
        <link href="../css/main.css" rel="stylesheet" type="text/css" />
    <style type="text/css">        
        .redbutton button
        {
            color: #FF0000;
        }
    </style>
<table width="100%"  Height="100%" border="0" bgcolor="#DFE8F6"  >
    <tr>
  <td  class="style1" style="background-color:#D1DEF1;" colspan="3"  Height="5">
 <div  id="time" style="margin-left:10px;"> 
<script>    
document.getElementById('time').innerHTML = new Date().toLocaleString() + ' 星期' + '日一二三四五六'.charAt(new Date().getDay()); setInterval("document.getElementById('time').innerHTML=new Date().toLocaleString()+' 星期'+'日一二三四五六'.charAt(new Date().getDay());", 1000);
</script>
</div>
</td>
    </tr>
    <tr>
        <td   class="style1">
        <ext:Form ID="Form6"  runat="server" Width="420px" Height="195px" 
                BodyPadding="1px" EnableBackgroundColor="true" Title="日历">
                    <Rows>
                      <ext:FormRow ID="FormRow6" runat="server">
                      <Items>
                 <ext:Calendar ID="Calendar1" runat="server"  CssStyle="float:left;" >                 
                </ext:Calendar> 
                 </Items>
                </ext:FormRow>
                    
                    </Rows>
                </ext:Form> 
         </td>
        <td>
 
        <ext:Form ID="Form1" ShowHeader="false" runat="server" Width="320px" Height="215px" 
                BodyPadding="1px" EnableBackgroundColor="true" Title="公告通知">
                    <Rows>
                      <ext:FormRow ID="FormRow1" runat="server">
                      <Items>
        <ext:Grid ID="Grid1" Title="公告通知"  Height="158px"    PageSize="5" ShowBorder="true"
         ShowHeader="true"  AllowPaging="true"  runat="server"   DataKeyNames="sid"  AutoPostBack="true"  
        OnPageIndexChange="Grid1_PageIndexChange" EnableRowNumber="True"  >      
        <Columns>           
           <ext:WindowField ColumnID="myWindowField" Width="250px" WindowID="windowSourceCode" HeaderText="标题"
                ToolTip="标题" DataTextFormatString="{0}" DataIFrameUrlFields="sid" DataTextField="adtitle"
                DataIFrameUrlFormatString="../oa/view.aspx?sid={0}" DataWindowTitleField="adtitle"
                DataWindowTitleFormatString="标题 - {0}" />
        </Columns>
    </ext:Grid>          
                 
                </Items>
                </ext:FormRow>
                    
                    </Rows>
                </ext:Form> 

        </td>
        <td>
     <ext:Form ID="Form5" ShowHeader="false" runat="server" Width="320px" Height="215px"
          BodyPadding="1px" EnableBackgroundColor="true"  >
                    <Rows>
                      <ext:FormRow ID="FormRow5" runat="server">
                      <Items>
<ext:Grid runat="server" AllowPaging="True" PageSize="5" AutoPostBack="True" 
                    EnableRowNumber="True" DataKeyNames="sid" Title="内部消息" Height="158px" 
                    ID="Grid2" OnPageIndexChange="Grid2_PageIndexChange"><Columns>
<ext:WindowField WindowID="windowSourceCode" DataWindowTitleField="title" 
            DataWindowTitleFormatString="标题 - {0}" DataTextField="title" 
            DataTextFormatString="{0}" DataIFrameUrlFields="sid" 
            DataIFrameUrlFormatString="../oa/msg_view.aspx?sid={0}" 
            ColumnID="myWindowField" HeaderText="标题"  Width="180px" ToolTip="DataTextField"></ext:WindowField>
<ext:BoundField DataField="outnm" DataFormatString="{0}" SortField="outnm" 
            ColumnID="ct1" HeaderText="接收人" Width="60px"></ext:BoundField>
</Columns>
</ext:Grid>
 </Items>
                </ext:FormRow>
                    
                    </Rows>
                </ext:Form> 
        </td>
    </tr>
    <tr>
        <td class="style1">
          <ext:Form ID="Form4" ShowHeader="false" runat="server" Width="420px" Height="215px"
          BodyPadding="1px" EnableBackgroundColor="true" Title="任务提醒">
                    <Rows>
                      <ext:FormRow ID="FormRow4" runat="server">
                      <Items>
           
                <ext:Grid ID="Grid3" runat="server" AllowPaging="True"  Height="150px" AutoPostBack="True" 
                    DataKeyNames="sid" EnableRowNumber="True"  
                    OnPageIndexChange="Grid3_PageIndexChange" PageSize="5"  Title="任务提醒">
                    <Columns>    
                    
            <ext:BoundField Width="80px" DataField="dt" DataFormatString="{0:yyyy-MM-dd}" HeaderText="提醒日期" />
          
            <ext:BoundField Width="80px" DataField="user" DataFormatString="{0}" SortField="user_name" HeaderText="提醒对象" />               
                        <ext:WindowField ColumnID="myWindowField" DataIFrameUrlFields="sid" 
                            DataIFrameUrlFormatString="../oa/task_view.aspx?sid={0}" DataTextFormatString="{0}" 
                            DataWindowTitleField="dt" DataWindowTitleFormatString="内容 - {0}"    DataTextField="tmemo" 
                            HeaderText="任务"  ToolTip="任务" WindowID="windowSourceCode" />
                    </Columns>
                </ext:Grid>

   </Items>
                </ext:FormRow>
                    
                    </Rows>
                </ext:Form> 
        </td>
        <td>
      <ext:Form ID="Form2" ShowHeader="false" runat="server" Width="320px" Height="215px"
       BodyPadding="1px" EnableBackgroundColor="true"  Title="公司制度">
                    <Rows>
                      <ext:FormRow ID="FormRow2" runat="server">
                      <Items>
               <ext:Grid ID="Grid4" Title="公司制度"    Height="150px"   PageSize="5" ShowBorder="true" 
       ShowHeader="true"  AllowPaging="true" runat="server" DataKeyNames="sid"  AutoPostBack="true"  
        OnPageIndexChange="Grid4_PageIndexChange" EnableRowNumber="True" >      
                    <Columns>
                     
                        <ext:WindowField ColumnID="myWindowField" Width="250px"  DataIFrameUrlFields="sid" 
                            DataIFrameUrlFormatString="../oa/view.aspx?sid={0}" DataTextFormatString="{0}" 
                            DataWindowTitleField="adtitle" DataWindowTitleFormatString="标题 - {0}"  DataTextField="adtitle"  
                            HeaderText="标题" ToolTip="标题" 
                            WindowID="windowSourceCode" />
                    </Columns>
                </ext:Grid>
               
               </Items>
                </ext:FormRow>                    
                    </Rows>
                </ext:Form> 

        </td>
        <td>
         <ext:Form ID="Form3" ShowHeader="false" runat="server" Width="320px" Height="215px"
          BodyPadding="1px" EnableBackgroundColor="true" Title="文摘共享">
                    <Rows>
                      <ext:FormRow ID="FormRow3" runat="server">
                      <Items>
     
                <ext:Grid ID="Grid5" runat="server" AllowPaging="True"  Height="150px"  AutoPostBack="True" 
                    DataKeyNames="sid" EnableRowNumber="True"   
                    OnPageIndexChange="Grid5_PageIndexChange" PageSize="5" Title="文摘共享">
                    <Columns>                  
                        <ext:WindowField ColumnID="myWindowField" Width="250px"  DataIFrameUrlFields="sid" 
                            DataIFrameUrlFormatString="../oa/view.aspx?sid={0}" DataTextFormatString="{0}" 
                            DataWindowTitleField="adtitle" DataWindowTitleFormatString="标题 - {0}"  DataTextField="adtitle"  
                            HeaderText="标题" ToolTip="标题" 
                            WindowID="windowSourceCode" />
                    </Columns>
                </ext:Grid>
  </Items>
                </ext:FormRow>                    
                    </Rows>
                </ext:Form> 

        </td>
    </tr>
    </table>
 